﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using YAPSAR.Web;
using Nancy.Hosting.Self;
using System.Threading;
using NHibernate.Cfg;
using NHibernate;
using NHibernate.Tool.hbm2ddl;
using System.IO;
using YAPSAR.Database;
using YAPSAR.Collector;

namespace YAPSAR
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            DatabaseManager.Instance.Start();
            SystemCollector.Instance.Start();
            WebApplication.Instance.Start();
            TrayApplication.Instance.Start();

            Application.Run();
        }
    }
}
